package com.woniuxy.main.pay.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.main.pay.dao.OrderMapper;
import com.woniuxy.main.pay.service.PayService;

@Service
public class PayServiceImpl implements PayService{
	@Autowired
	private OrderMapper orderMapper;

	@Override
	public Integer searchBalance(Integer userId) {
		Integer balance=orderMapper.searchBalance(userId);
		return balance;
	}

	@Override
	public void addBalance(Integer userid, Integer money) {
		orderMapper.addBalance(userid, money);
	}

	
}
